<html>

<head>
                <meta charset="UTF-8">
                <title>这是ci框架的视图</title>
</head>

<body>
                <h2><?php echo $title ?></h2>
                <p>视图文件存放在views目录中，后缀名可以是.html或者.php</p>
                <table>
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>邮箱</th>
        </tr>
        <?php foreach ( $userlist as $k => $v ) :?>
        <tr>
            <td>
                <?php echo $v['id'] ?>
            </td>
            <td>
                <?php echo $v['name'] ?>
            </td>
            <td>
                <?php echo $v['email'] ?>
            </td>
        </tr>
        <?php endforeach;?>
    </table>
</body>

</html>

